import service from "@/utils/service.js"

export function link(url,method){
	return new Promise((resolve,reject)=>{
		service.request({
			url,method
		}).then(ok=>{
			resolve(ok)
		}).catch(err=>{
			reject(err)
		})
	})
}